package net.itheima.mm.service.impl;

import net.itheima.mm.dao.CatalogMapper;
import net.itheima.mm.entity.QueryPageBean;
import net.itheima.mm.pojo.Catalog;
import net.itheima.mm.service.CatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CatalogServiceImpl implements CatalogService {
    @Autowired
    private CatalogMapper catalogMapper;
    @Override
    public List<Catalog> findListByPage(QueryPageBean queryPageBean) {
        return catalogMapper.findListByPage(queryPageBean);
    }

    @Override
    public Long findTatolListByPage(QueryPageBean queryPageBean) {
        return catalogMapper.findTotalListByPage(queryPageBean);
    }
}
